#ifndef __SPHERE_H__
#define __SPHERE_H__
/////////////////
//include
/////////////////
#include"Vector3D.h"
#include"CollisionObject.h"
/////////////////
//const
/////////////////

/////////////////
//class
/////////////////
class DeviceContext;
class Sphere : public CollisionObject
{
public:
	Sphere(Vector3D center = Vector3D(),float r = 0);
	~Sphere();
	void Draw(DeviceContext* device_context);
	bool Collision(const Vector3D& pos,float r) const;
	bool Collision(const Sphere& sphere);
	CollInfo Collision(CollisionObject* coll);
	Vector3D GetPos() const{return center;}
	void SetZero() { center = Vector3D(); r = 0;}
	Vector3D	center;
	float r;
};
#endif __SPHERE_H__
